package com.itic.ht.mem.pointoffer.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.itic.appbase.framework.common.service.HtCrudService;
import com.itic.ht.mem.pointoffer.persistence.dao.PointOfferDao;
import com.itic.ht.mem.pointoffer.persistence.model.PointOffer;
import com.itic.ht.mem.pointoffer.persistence.model.PointOfferExample;


@Service
@Transactional
public class PointOfferService extends HtCrudService<PointOfferDao,PointOffer,PointOfferExample> {
    @Autowired
    private PointOfferDao pointOfferDao;

	public String deltrue(Integer id) {
		int result = pointOfferDao.deleteByPrimaryKey(id);
		if(result>0){
    		return SUCCESS;
    	}else{
    		return FAILED;
    	}
	}


}